import App from '../App.vue'

export default [{
    path: '/home',
    name: 'home',
    component: App.components.Home,
    meta: {
      requireAuth: true, // true表示需要登录
    }
  },
  {
    path: '/whome',
    name: 'whome',
    component: App.components.Whome,
    meta: {
      requireAuth: false, // true表示需要登录
    }
  },
  {
    path: '/user',
    name: 'user',
    component: App.components.User,
    meta: {
      requireAuth: true, // true表示需要登录
    }
  },
  {
    path: '/search',
    name: 'search2',
    component: App.components.Search,
    meta: {
      requireAuth: true, // true表示需要登录
    }
  },
  {
    path: '/cart',
    name: 'cart',
    component: App.components.Cart,
    meta: {
      requireAuth: true, // true表示需要登录
    }
  },
  {
    path: '/detail',
    name: 'detail',
    component: App.components.Detail,
    meta: {
      requireAuth: true, // true表示需要登录
    }
  },
  {
    path: '/books',
    name: 'books',
    component: App.components.OrderBooks,
    meta: {
      requireAuth: true, // true表示需要登录
    }
  },
  {
    path: '/bookInfo',
    name: 'bookInfo',
    component: App.components.OrderBookInfo,
    meta: {
      requireAuth: true, // true表示需要登录
    }
  },
  {
    path: '/book',
    name: 'book',
    component: App.components.OrderBook,
    meta: {
      requireAuth: true, // true表示需要登录
    }
  },
  {
    path: '/payList',
    name: 'payList',
    component: App.components.PayList,
    meta: {
      requireAuth: true, // true表示需要登录
    }
  },
  {
    path: '/AliPay',
    name: 'AliPay',
    component: App.components.PayZhifubao,
    meta: {
      requireAuth: true, // true表示需要登录
    }
  },
  {
    path: '/location',
    name: 'location',
    component: App.components.Location,
    meta: {
      requireAuth: true, // true表示需要登录
    }
  },
  {
    path: '/locationForm',
    name: 'locationForm',
    component: App.components.LocationForm,
    meta: {
      requireAuth: true, // true表示需要登录
    }
  },
  {
    path: '/signIn',
    name: 'signIn',
    component: App.components.SignIn
  },
  {
    path: '/signUp',
    name: 'signUp',
    component: App.components.SignUp
  },
  {
    path: '/ZymlList',
    name: 'ZymlList',
    component: App.components.ZymlList,
    meta: {
      requireAuth: false, // true表示需要登录
    }
  },
  {
    path: '/ZymlListxq',
    name: 'ZymlListxq',
    component: App.components.ZymlListxq,
    meta: {
      requireAuth: false, // true表示需要登录
    }
  },
  {
    path: '/ZymlListDetail',
    name: 'ZymlListDetail',
    component: App.components.ZymlListDetail,
    meta: {
      requireAuth: false, // true表示需要登录
    }
  },
  {
    path: '/ZymlListxqDetailDb',
    name: 'ZymlListxqDetailDb',
    component: App.components.ZymlListxqDetailDb,
    meta: {
      requireAuth: false, // true表示需要登录
    }
  },
  {
    path: '/ZymlListxqDetailFile',
    name: 'ZymlListxqDetailFile',
    component: App.components.ZymlListxqDetailFile,
    meta: {
      requireAuth: false, // true表示需要登录
    }
  },
  {
    path: '/ZymlListxqDetailInterface',
    name: 'ZymlListxqDetailInterface',
    component: App.components.ZymlListxqDetailInterface,
    meta: {
      requireAuth: false, // true表示需要登录
    }
  },
  {
    path: '/FwsqList',
    name: 'FwsqList',
    component: App.components.FwsqList,
    meta: {
      requireAuth: false, // true表示需要登录
    }
  },
  {
    path: '/FwsqListDetail',
    name: 'FwsqListDetail',
    component: App.components.FwsqListDetail,
    meta: {
      requireAuth: false, // true表示需要登录
    }
  },
  {
    path: '/FwsqList2',
    name: 'FwsqList2',
    component: App.components.FwsqList2,
    meta: {
      requireAuth: false, // true表示需要登录
    }
  },
  {
    path: '/FwsqListDetail2',
    name: 'FwsqListDetail2',
    component: App.components.FwsqListDetail2,
    meta: {
      requireAuth: false, // true表示需要登录
    }
  },
  {
    path: '/TJhome',
    name: 'TJhome',
    component: App.components.TJhome,
    meta: {
      requireAuth: false, // true表示需要登录
    }
  },
  {
    path: '/ErrorUp',
    name: 'ErrorUp',
    component: App.components.ErrorUp,
    meta: {
      requireAuth: false, // true表示需要登录
    }
  },
  {
    path: '/NewsListPage',
    name: 'NewsListPage',
    component: App.components.NewsListPage,
    meta: {
      requireAuth: false, // true表示需要登录
    }
  },
  {
    path: '/MessagePage',
    name: 'MessagePage',
    component: App.components.MessagePage,
    meta: {
      requireAuth: false, // true表示需要登录
    }
  },
  
  
  
  {
    path: '*',
    redirect: '/Home'
  }
]
